package com.dx.common.table.ppt;

/**
 * Ret_stocker_znId entity. @author MyEclipse Persistence Tools
 */

public class Ret_stocker_znId implements java.io.Serializable {

	// Fields    

	private String stocker_id_fk;
	private String zone_id;

	// Constructors

	/** default constructor */
	public Ret_stocker_znId() {
	}

	/** full constructor */
	public Ret_stocker_znId(String stocker_id_fk, String zone_id) {
		this.stocker_id_fk = stocker_id_fk;
		this.zone_id = zone_id;
	}

	// Property accessors

	public String getStocker_id_fk() {
		return this.stocker_id_fk;
	}

	public void setStocker_id_fk(String stocker_id_fk) {
		this.stocker_id_fk = stocker_id_fk;
	}

	public String getZone_id() {
		return this.zone_id;
	}

	public void setZone_id(String zone_id) {
		this.zone_id = zone_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_stocker_znId))
			return false;
		Ret_stocker_znId castOther = (Ret_stocker_znId) other;

		return ((this.getStocker_id_fk() == castOther.getStocker_id_fk()) || (this.getStocker_id_fk() != null
				&& castOther.getStocker_id_fk() != null && this.getStocker_id_fk().equals(castOther.getStocker_id_fk())))
				&& ((this.getZone_id() == castOther.getZone_id()) || (this.getZone_id() != null && castOther.getZone_id() != null && this
						.getZone_id().equals(castOther.getZone_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getStocker_id_fk() == null ? 0 : this.getStocker_id_fk().hashCode());
		result = 37 * result + (getZone_id() == null ? 0 : this.getZone_id().hashCode());
		return result;
	}

}